package com.tzbank.common.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class FlowOptimizeRelation {

	private int autoId;

	private String optimizeId;

	private String flowRuleIds;

	private String flowId;

	private String ruleLogic;

	public enum ENUM_RULELOGIC {
		VALUE_AND("&&"), 
		VALUE_OR("||");

		private String val;

		private ENUM_RULELOGIC(String val) {
			this.val = val;
		}

		public String val() {
			return this.val;
		}
	}

	private String actionFlag;

	public enum ENUM_ACTIONFLAG {
		VALUE_0("0", "不符合规则-不执行"), 
		VALUE_1("1", "符合规则-执行");

		private String val;
		private String desc;

		private ENUM_ACTIONFLAG(String val, String desc) {
			this.val = val;
			this.desc = desc;
		}

		public String val() {
			return this.val;
		}

		public String desc() {
			return this.desc;
		}
	}

	private String removeFlowNode;

	private String status;

	public enum ENUM_STATUS {
		VALUE_0("0", "关闭"), 
		VALUE_1("1", "开启");

		private String val;
		private String desc;

		private ENUM_STATUS(String val, String desc) {
			this.val = val;
			this.desc = desc;
		}

		public String val() {
			return this.val;
		}

		public String desc() {
			return this.desc;
		}
	}

	private String remark;

	public int getAutoId() {
		return autoId;
	}

	public void setAutoId(int autoId) {
		this.autoId = autoId;
	}

	public String getOptimizeId() {
		return optimizeId;
	}

	public void setOptimizeId(String optimizeId) {
		this.optimizeId = optimizeId;
	}

	public String getFlowRuleIds() {
		return flowRuleIds;
	}

	public void setFlowRuleIds(String flowRuleIds) {
		this.flowRuleIds = flowRuleIds;
	}

	public String getFlowId() {
		return flowId;
	}

	public void setFlowId(String flowId) {
		this.flowId = flowId;
	}

	public String getRuleLogic() {
		return ruleLogic;
	}

	public void setRuleLogic(String ruleLogic) {
		this.ruleLogic = ruleLogic;
	}

	public String getActionFlag() {
		return actionFlag;
	}

	public void setActionFlag(String actionFlag) {
		this.actionFlag = actionFlag;
	}

	public String getRemoveFlowNode() {
		return removeFlowNode;
	}

	public void setRemoveFlowNode(String removeFlowNode) {
		this.removeFlowNode = removeFlowNode;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
}
